package com.renwei.yunlong.pager;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;

import com.renwei.yunlong.R;
import com.renwei.yunlong.adapter.WorkHistoryPagerAdapter;
import com.renwei.yunlong.base.BaseFragment;
import com.renwei.yunlong.utils.ACache;


/**
 * 工单  记录  页面
 *
 * Created by Administrator on 2017/9/6.
 */

public class WorkHistoryPager extends BaseFragment implements View.OnClickListener{

    private RecyclerView recyclerView;

    private ACache mCache;

    private WorkHistoryPagerAdapter workHistoryAdapter;

    @Override
    public View initView() {
        View view = LayoutInflater.from(mActivity).inflate(R.layout.fragment_work_history_pager, null);

        mCache = ACache.get(getActivity());
        recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);
        return view;
    }

    @Override
    public void initData() {
        workHistoryAdapter = new WorkHistoryPagerAdapter(getActivity());
        recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
        recyclerView.setAdapter(workHistoryAdapter);
    }

    @Override
    public void onClick(View v) {

    }
}
